<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%@include file="nav.jsp"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>商城后台管理</title>
</head>
<body>
	<c:if test="${o.get('state')==0}">
		<td>未发货</td>
	</c:if>
	<c:if test="${o.get('state')==1}">
		<td>已发货</td>
	</c:if>
	<script type="text/javascript">
		var adddom = "<table class='table table-bordered table-hover table-condersed'>"
				+ "<tr class='active success info'>"
				+ "<th>订单号</th>"
				+ "<th>商品名称</th>"
				+ "<th>价格</th>"
				+ "<th>数量</th>"
				+ "<th>总价</th>"
				+ "<th>日期</th>"
				+ "<th>地址</th>"
				+ "<th>备注</th>"
				+ "<th>用户</th>"
				+ "<th colspan=2>操作</th>"
				+ "</tr>"
				+ "<c:forEach items='${Orderss }' var='order'>"
				+ "<tr class='active success info'>"
				+ "<td>${order.oid}</td>"
				+ "<td>${order.gname}</td>"
				+ "<td>${order.price}</td>"
				+ "<td>${order.number}</td>"
				+ "<td>${order.total}</td>"
				+ "<td>${order.date}</td>"
				+ "<td>${order.address}</td>"
				+ "<td>${order.remark}</td>"
				+ "<c:if test='${order.state==0}'><td >未发货</td></c:if>"
				+ "<c:if test='${order.state==1}'><td >已发货</td></c:if>"
				/* + "<td><a href='orderinfo.jsp?oid=${order.oid}' class='btn'>详情</a></td>" */
				+ "<td><a href='updateorder.jsp?price=${order.price}&number=${order.number}&state=${order.state}"
				+ "&address=${order.address}&remark=${order.remark}&oid=${order.oid}' class='btn'>修改</a>"
				+ "</tr></c:forEach></table>";
		var navdom = "<strong class='am-text-danger am-text-lg'>订单管理</strong> / <small>Order</small>";
		$("#abc").html(navdom);
		$("#xyz").html(adddom);
	</script>
</body>
</html>